package com.android.base_network.data

data class BaseResponse<T>(
    private val code: Int,
    private val message: String,
    private val data: T
) : IBaseResponse<T> {
    override fun code() = code

    override fun message() = message

    override fun data(): T = data

    override fun isSuccess() = code == 200

}
